﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="frm_CustomersInfo.aspx.cs" Inherits="Mod_InitSet_frm_CustomersInfo" %>

<%@ Register Src="../WebCustomUserControls/CuTextSelectBox.ascx" TagName="CuTextSelectBox"TagPrefix="uc1" %>
<%@ Register Src="../WebCustomUserControls/CuTextBox.ascx" TagName="CuTextBox" TagPrefix="uc2" %>
<%@ Register Src="../WebCustomUserControls/CustomerAddress.ascx" TagName="CustomerAddress" TagPrefix="uc3" %>
<%@ Register Src="../WebCustomUserControls/CustomerOffice.ascx" TagName="CustomerOffice" TagPrefix="uc4" %>
<%@ Register Src="../WebCustomUserControls/CustomerLicence.ascx" TagName="CustomerLicence" TagPrefix="uc5" %>
<%@ Register Src="../WebCustomUserControls/CustomerCharter.ascx" TagName="CustomerCharter" TagPrefix="uc6" %>
<%@ Register Src="../WebCustomUserControls/CustomerPrice.ascx" TagName="CustomerPrice" TagPrefix="uc7" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
    <head runat="server">
        <title></title>
        <script language="javascript" src="../App_script/index.js"></script>
        <script language="javascript" src="../XMLHttpRequest/xmlhttprequest.js"></script>
        <script language="javascript" src="../App_Script/InputValidate.js"></script>
        <link type="text/css" rel="stylesheet" href="../App_Css/css1.css"/>
    </head>
    <body rightmargin="0" topmargin="0" bottommargin="0" leftmargin="0" onresize="ChangDivWidth()" onkeydown="FocusChangNext()">
        <form id="CustomersInfoPage" runat="server">
            <input type="hidden" id="hidCurrPageID" runat="server" style="width:0; height:0">
            <!-- 下拉子菜单 Begin -->
            <div id="divChildMenu" align="center" style="border-right: #cdccc1 1px solid; visibility:hidden; border-top: #cdccc1 1px solid; left: 551px; border-left: #cdccc1 1px solid; width: 120px; border-bottom: #cdccc1 1px solid; position: absolute; top: 31px; height: 40px; background-color: #e8e8e3">
                <table cellpadding="0" cellspacing="0" border="0" width="100%" height="100%" class="text">
                    <tr onmouseover="ChangTrBgColor(this, '#D3E2D7')" onmouseout="ChangTrBgColor(this, '')">
                        <td width="20%" align="center" style="height: 18px"></td>
                        <td width="80%" align="left" style="height: 18px">
                            <asp:linkbutton ID="lbtnDelete0" CommandName="1" OnClick="lbtnDelete_Click" runat="server" Text="作   废" Font-Overline="False" ForeColor="#4E4E4E"/>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2" style="height: 1px"><hr style="width: 101px" /></td>
                    </tr>
                    <tr onmouseover="ChangTrBgColor(this, '#D3E2D7')" onmouseout="ChangTrBgColor(this, '')">
                        <td width="20%" align="center" style="height: 25px"></td>
                        <td width="80%" align="left" style="height: 25px">
                            <asp:linkbutton ID="lbtnDelete1" Enabled=false CommandName="-1" OnClick="lbtnDelete_Click" runat="server" Text="彻底作废" Font-Overline="False" ForeColor="#4E4E4E"/>
                        </td>
                    </tr>
                </table>
            </div>
            <!-- 下拉子菜单 End -->
            <table align="center" width="100%" height="449" cellpadding="0" cellspacing="0" border="0">
                <tr>
                    <td align="right" background="../App_Images/b_12.gif" style="height: 35px">
                        <!-- 操作工具条 Begin -->
                        <table width="820" height="35" cellpadding="0" cellspacing="0" border="0">
                            <tr>
                                <asp:Panel ID="panPrint" Visible="false" runat="server">
                                <td width="120">
                                    <table width="100" height="25" cellpadding="0" cellspacing="0"  border="0">
                                        <tr>
                                            <td align="center" width="70"><asp:ImageButton ID="ibtnPrint" ImageUrl="../App_Images/b_52_1.gif" onmouseover="ChangImage(this, '../App_Images/b_52_2.gif')" onmouseout="ChangImage(this, '../App_Images/b_52_1.gif')" runat="server" /></td>
                                        </tr>
                                    </table>
                                </td>
                                </asp:Panel>
                                <td>&nbsp;</td>
                                <td width="1">
                                    <input type="hidden" id="hidButtonEdit" runat="server" style="width:0; height:0;">
                                    <input type="hidden" id="hidButtonOAudit" runat="server" style="width:0; height:0;">
                                </td>
                                <asp:Panel ID="panAdd" Visible="false" runat="server">
                                <td width="100">
                                    <table width="100" height="25" cellpadding="0" cellspacing="0"  border="0">
                                        <tr>
                                            <td align="center" width="100"><asp:imagebutton runat="server" id="ibtnAdd" OnClick="AddCustomerInfo" CommandName="0" ImageUrl="../App_Images/b_18_1.gif" onmouseover="ChangImage(this, '../App_Images/b_18_2.gif')" onmouseout="ChangImage(this, '../App_Images/b_18_1.gif')" /></td>
                                        </tr>
                                    </table>
                                </td>
                                </asp:Panel>
                               <asp:Panel ID="panRef" Visible="false" runat="server">
                                <td width="100">
                                    <table width="100" height="25" cellpadding="0" cellspacing="0"  border="0">
                                        <tr>
                                            <td align="center" width="70"><asp:ImageButton ID="ibtnRef" CommandName="0" ImageUrl="../App_Images/b_20_1.gif" onmouseover="ChangImage(this, '../App_Images/b_20_2.gif')" onmouseout="ChangImage(this, '../App_Images/b_20_1.gif')" runat="server" OnClick="ibtnRef_Click" /></td>
                                            <td align="center" width="30"><img src="../App_Images/b_25.gif" height="25" width="1"/></td>
                                        </tr>
                                    </table>
                                </td>
                                </asp:Panel>
                                <asp:Panel ID="panAudit" Visible="false" runat="server">
                                <td width="100">
                                    <table width="100" height="25" cellpadding="0" cellspacing="0"  border="0">
                                        <tr>
                                            <td align="center" width="70"><asp:ImageButton ID="ibtnAudit" OnClick="AuditCustomerInfo" CommandName="0" CommandArgument="-1" ImageUrl="../App_Images/b_21_1.gif" onmouseover="ChangImage(this, '../App_Images/b_21_2.gif')" onmouseout="ChangImage(this, '../App_Images/b_21_1.gif')" runat="server" /></td>
                                            <td align="center" width="30"><img src="../App_Images/b_25.gif" height="25" width="1"/></td>
                                        </tr>
                                    </table>
                                </td>
                                </asp:Panel>
                                <asp:Panel ID="panDelete" Visible="false" runat="server">
                                <td width="130">
                                    <table width="130" height="25" cellpadding="0" cellspacing="0"  border="0">
                                        <tr>
                                            <td align="center" width="70"><asp:ImageButton ID="ibtnDelete0" CommandName="1" ImageUrl="../App_Images/b_19_1.gif" onmouseover="ChangImage(this, '../App_Images/b_19_2.gif');ChangImage(document.all.imgDelete, '../App_Images/b_19_3.gif')" onmouseout="ChangImage(this, '../App_Images/b_19_1.gif');ChangImage(document.all.imgDelete, '../App_Images/b_19_4.gif')" runat="server" OnClick="ibtnDelete0_Click" /></td>
                                            <td align="center" width="17"><asp:Image id="imgDelete" runat="server" ImageUrl="../App_Images/b_19_4.gif" style="cursor:hand" onmouseover="ChangImage(this, '../App_Images/b_19_3.gif');ChangImage(document.all.ibtnDelete0, '../App_Images/b_19_2.gif')" onmouseout="ChangImage(this, '../App_Images/b_19_4.gif');ChangImage(document.all.ibtnDelete0, '../App_Images/b_19_1.gif')" onclick="ChildMenuVisible()" /></td>
                                            <td align="center" width="43"><img src="../App_Images/b_25.gif" height="25" width="1"/></td>
                                        </tr>
                                    </table>
                                </td>
                                </asp:Panel>
                                <asp:Panel ID="panSearch" Visible="false" runat="server">
                                <td width="130">
                                    <table width="130" height="18" cellpadding="0" cellspacing="0"  border="1" bordercolor="#a1a7bb" style="border-collapse: collapse">
                                        <tr>
                                            <td width="17"><img src="../App_Images/ico/5.gif" border="0" width="17" height="17" /></td>
                                            <td width="77"><asp:TextBox ID="txtKey" runat="server" Width="68px" BorderWidth="0px" Height="15px" onmousedown="this.value=''" onmouseover="this.select()" CssClass="text" Text="查询关键字" /></td>
                                            <td width="36"><asp:ImageButton ID="ibtnSearch" runat="server" ImageUrl="../App_Images/b_21.gif" Width="36" Height="18" OnClick="ibtnSearch_Click" /></td>
                                        </tr>
                                    </table>
                                </td>
                                </asp:panel>
                                <td width="10">&nbsp;</td>
                            </tr>
                        </table>
                        <!-- 操作工具条 End -->
                    </td>
                </tr>
                <tr>
                    <td height="25" align="left">
                        <!-- 翻页控制 Begin -->
                        <table width="820" height="25" cellpadding="0" cellspacing="0" border="0" class="text">
                            <tr>
                                <td align="center">
                                    <asp:Label ID="lblRsCounts" runat="server" CssClass="text"/>
                                    <asp:Label ID="lblPageCounts" runat="server" CssClass="text"/>
                                    <asp:Label ID="lblCurrPage" runat="server" CssClass="text"/>&nbsp;&nbsp;
                                    <asp:linkbutton ID="lbtnFirst" runat="server" CssClass="text" Text="首  页" OnClick="ChangPage" CommandName="0" />
                                    <asp:linkbutton ID="lbtnPrev" runat="server" CssClass="text" Text="上一页" OnClick="ChangPage" CommandName="1" />
                                    <asp:linkbutton ID="lbtnNext" runat="server" CssClass="text" Text="下一页" OnClick="ChangPage" CommandName="2" />
                                    <asp:linkbutton ID="lbtnEnd" runat="server" CssClass="text" Text="尾  页" OnClick="ChangPage" CommandName="3" />&nbsp;&nbsp;
                                    <asp:Label ID="lblGoTxt1" runat="server" CssClass="text" Text="跳转到"/>
                                    <asp:textBox ID="txtGo" onmouseover="this.select()" runat="server" CssClass="text" Height="13px" Width="18px" BorderColor="#7F9DB9" BorderWidth="1px" MaxLength="5"  AutoPostBack="True" OnTextChanged="txtGo_TextChanged"/>
                                    <asp:Label ID="lblGoTxt2" runat="server" CssClass="text" Text="页"/>
                                </td>
                            </tr>
                        </table>
                        <!-- 翻页控制 End -->
                    </td>
                </tr>
                <tr>
                    <td height="439" valign="top">
                        <div id="divShowResult" style="overflow: auto; width: 820px; height: 447px; border-right: #a1a7bb 1px solid; border-top: #a1a7bb 1px solid;">
                            <table width="2200" height="25" cellpadding="0" cellspacing="0" border="0">
                                <tr>
                                    <td>
                                        <table width="2200" height="25" cellspacing="0" cellpadding="0" border="1" class="text" bordercolor="#a1a7bb" style="border-collapse: collapse">
                                            <tr style="cursor:default">
                                                <td align="center" background="../App_Images/b_17.gif" style="font-weight: bold; color: #183184; height: 25px; width: 60px;">操作</td>
                                                <td align="center" background="../App_Images/b_17.gif" style="font-weight: bold; color: red ; height: 25px; width: 90px;">客户编号</td>
                                                <td align="center" background="../App_Images/b_17.gif" style="font-weight: bold; color: red; height: 25px; width: 80px;">客户简称</td>
                                                <td align="center" background="../App_Images/b_17.gif" style="font-weight: bold; color: red; height: 25px; width: 100px;">客户全称</td>
                                                <td align="center" background="../App_Images/b_17.gif" style="font-weight: bold; color: #183184; height: 25px; width: 80px;">联系电话</td>
                                                <td align="center" background="../App_Images/b_17.gif" style="font-weight: bold; color: #183184; height: 25px; width: 80px;">传真号码</td>
                                                <td align="center" background="../App_Images/b_17.gif" style="font-weight: bold; color: red; height: 25px; width: 120px;">地址</td>
                                                <td align="center" background="../App_Images/b_17.gif" style="font-weight: bold; color: red; height: 25px; width: 60px;">邮编</td>
                                                <td align="center" background="../App_Images/b_17.gif" style="font-weight: bold; color: #183184; height: 25px; width: 70px;">公司法人</td>
                                                <td align="center" background="../App_Images/b_17.gif" style="font-weight: bold; color: #183184; height: 25px; width: 70px;">联系人</td>
                                                <td align="center" background="../App_Images/b_17.gif" style="font-weight: bold; color: #183184; height: 25px; width: 100px;">EMAIL</td>
                                                <td align="center" background="../App_Images/b_17.gif" style="font-weight: bold; color: #183184; height: 25px; width: 80px;">联系电话</td>
                                                <td align="center" background="../App_Images/b_17.gif" style="font-weight: bold; color: #183184; height: 25px; width: 80px;">传真</td>
                                                <td align="center" background="../App_Images/b_17.gif" style="font-weight: bold; color: red; height: 25px; width: 70px;">所属部门</td>
                                                <td align="center" background="../App_Images/b_17.gif" style="font-weight: bold; color: red; height: 25px; width: 70px;">负责人</td>
                                                <td align="center" background="../App_Images/b_17.gif" style="font-weight: bold; color: red; height: 25px; width: 70px;">客户类型</td>
                                                <td align="center" background="../App_Images/b_17.gif" style="font-weight: bold; color: #183184; height: 25px; width: 80px;">客户类别</td>
                                                <td align="center" background="../App_Images/b_17.gif" style="font-weight: bold; color: #183184; height: 25px; width: 80px;">开户行</td>
                                                <td align="center" background="../App_Images/b_17.gif" style="font-weight: bold; color: #183184; height: 25px; width: 90px;">帐号</td>
                                                <td align="center" background="../App_Images/b_17.gif" style="font-weight: bold; color: #183184; height: 25px; width: 90px;">税号</td>
                                                <td align="center" background="../App_Images/b_17.gif" style="font-weight: bold; color: #183184; height: 25px; width: 85px;">录入人</td>
                                                <td align="center" background="../App_Images/b_17.gif" style="font-weight: bold; color: #183184; height: 25px; width: 100px;">录入日期</td>
                                                <td align="center" background="../App_Images/b_17.gif" style="font-weight: bold; color: #183184; height: 25px; width: 85px;">确认人</td>
                                                <td align="center" background="../App_Images/b_17.gif" style="font-weight: bold; color: #183184; height: 25px; width: 100px;">确认日期</td>
                                                <td align="center" background="../App_Images/b_17.gif" style="font-weight: bold; color: #183184; height: 25px;">备注</td>
                                            </tr>
                                            <!-- 主表添加新记录面板 Begin -->
                                            <asp:Panel ID="panAddResult" Visible="false" runat="server"> 
                                            <tr height="25" bgcolor="#E9F0EB">
                                                <td align="center" style="width: 60px;" background="../App_Images/b_23.gif">
                                                    <asp:ImageButton ID="ibtnAddCancel" OnClick="AddCustomerInfo" CommandName="1" ImageUrl="../App_Images/ico/4.gif" ToolTip="取消新增" runat="server" OnClientClick="return confirm('您真的要取消新增吗？');" />&nbsp;
                                                    <asp:ImageButton ID="ibtnAddServer" OnClick="AddCustomerInfo" CommandName="2" ImageUrl="../App_Images/ico/11.gif" ToolTip="保存新增" runat="server" />
                                                </td>
                                                <td align="center" style="width: 90px;"><asp:TextBox ID="txt1" ToolTip="客户编号" Width="80" Height="15" runat="server" CssClass="text" BorderColor="#7F9DB9" BorderWidth="1" BackColor="transparent" /></td>
                                                <td align="center" style="width: 80px;"><asp:TextBox ID="txt2" ToolTip="客户简称" Width="70" Height="15" runat="server" CssClass="text" BorderColor="#7F9DB9" BorderWidth="1" BackColor="transparent" /></td>
                                                <td align="center" style="width: 100px;"><asp:TextBox ID="txt3" ToolTip="客户全称" Width="90" Height="15" runat="server" CssClass="text" BorderColor="#7F9DB9" BorderWidth="1" BackColor="transparent" /></td>
                                                <td align="center" style="width: 80px;"><asp:TextBox ID="txt4" Width="70" Height="15" runat="server" CssClass="text" BorderColor="#7F9DB9" BorderWidth="1" BackColor="transparent" /></td>
                                                <td align="center" style="width: 80px;"><asp:TextBox ID="txt5" Width="70" Height="15" runat="server" CssClass="text" BorderColor="#7F9DB9" BorderWidth="1" BackColor="transparent" /></td>
                                                <td align="center" style="width: 120px;"><asp:TextBox ID="txt6" ToolTip="地址" Width="110" Height="15" runat="server" CssClass="text" BorderColor="#7F9DB9" BorderWidth="1" BackColor="transparent" /></td>
                                                <td align="center" style="width: 60px;"><asp:TextBox ID="txt7" ToolTip="邮编" onblur="CheckZip(this.id, this.value)" Width="50" runat="server" BackColor="transparent" BorderColor="#7F9DB9" BorderWidth="1" CssClass="text" Height="15"></asp:TextBox></td>
                                                <td align="center" style="width: 70px;"><asp:TextBox ID="txt8" Width="60" Height="15" runat="server" CssClass="text" BorderColor="#7F9DB9" BorderWidth="1" BackColor="transparent" /></td>
                                                <td align="center" style="width: 70px;"><asp:TextBox ID="txt9" Width="60" Height="15" runat="server" CssClass="text" BorderColor="#7F9DB9" BorderWidth="1" BackColor="transparent" /></td>
                                                <td align="center" style="width: 100px;"><asp:TextBox ID="txt10" Width="90" Height="15" runat="server" CssClass="text" BorderColor="#7F9DB9" BorderWidth="1" BackColor="transparent" /></td>
                                                <td align="center" style="width: 80px;"><asp:TextBox ID="txt11" Width="70" Height="15" runat="server" CssClass="text" BorderColor="#7F9DB9" BorderWidth="1" BackColor="transparent" /></td>
                                                <td align="center" style="width: 80px;"><asp:TextBox ID="txt12" Width="70" Height="15" runat="server" CssClass="text" BorderColor="#7F9DB9" BorderWidth="1" BackColor="transparent" /></td>
                                                <td align="center" style="width: 70px;"><uc1:CuTextSelectBox ID="ctxt1" Width="60" runat="server" ReturnTextIDs="ctxt1" OpenPageUrl="../Mod_QueryFrom/frm_QueryDept.aspx" /></td>
                                                <td align="center" style="width: 70px;"><uc1:CuTextSelectBox ID="ctxt2" Width="60" runat="server" ReturnTextIDs="ctxt2" OpenPageUrl="../Mod_QueryFrom/frm_QueryWorker.aspx" /></td>
                                                <td align="center" style="width: 70px;">
                                                    <asp:dropdownlist ID="drop1" runat="server" CssClass="text" Width="65"> 
                                                        <asp:ListItem Selected="True" Value="0">医院</asp:ListItem>
                                                        <asp:ListItem Value="1">商业</asp:ListItem>
                                                        <asp:ListItem Value="2">个人</asp:ListItem>
                                                        <asp:ListItem Value="3">其它</asp:ListItem>
                                                    </asp:dropdownlist>
                                                </td>
                                                <td align="center" style="width: 80px;"><uc1:CuTextSelectBox ID="ctxt3" Width="70" runat="server" ReturnTextIDs="ctxt3" OpenPageUrl="../Mod_QueryFrom/frm_QueryCustomerType.aspx" /></td>
                                                <td align="center" style="width: 80px;"><asp:dropdownlist ID="drop2" runat="server" CssClass="text" Width="75"/></td>
                                                <td align="center" style="width: 90px;"><asp:TextBox ID="txt13" Width="80" Height="15" runat="server" CssClass="text" BorderColor="#7F9DB9" BorderWidth="1" BackColor="transparent" /></td>
                                                <td align="center" style="width: 90px;"><asp:TextBox ID="txt14" Width="80" Height="15" runat="server" CssClass="text" BorderColor="#7F9DB9" BorderWidth="1" BackColor="transparent" /></td>
                                                <td align="center" style="width: 85px;"><asp:TextBox ID="txt15" Width="75" Height="15" runat="server" CssClass="text" BorderColor="#7F9DB9" BorderWidth="0" ReadOnly="true" BackColor="transparent" /></td>
                                                <td align="center" style="width: 100px;"><asp:TextBox ID="txt16" Width="60" Height="15" runat="server" CssClass="text" BorderColor="#7F9DB9" BorderWidth="0" ReadOnly="true" BackColor="transparent" /></td>
                                                <td align="center" style="width: 85px;"><asp:TextBox ID="txt17" Width="75" Height="15" runat="server" CssClass="text" BorderColor="#7F9DB9" BorderWidth="0" ReadOnly="true" BackColor="transparent" /></td>
                                                <td align="center" style="width: 100px;"><asp:TextBox ID="txt18" Width="60" Height="15" runat="server" CssClass="text" BorderColor="#7F9DB9" BorderWidth="0" ReadOnly="true" BackColor="transparent" /></td>
                                                <td align="center"><asp:TextBox ID="txt19" Width="170" Height="15" runat="server" CssClass="text" BorderColor="#7F9DB9" BorderWidth="1" BackColor="transparent" onkeydown="ButtonSubmit('ibtnAddServer')" /></td>
                                            </tr>
                                           </asp:Panel>
                                            <!-- 主表添加新记录面板 End -->
                                        </table>
                                    </td>
                                </tr>
                                <!-- 主表记录显示区 Begin -->
                                <tr>
                                    <td style="height: 359px" valign="top">
                                        <asp:DataGrid ID="dgrdResult" runat="server" AllowPaging="True" AutoGenerateColumns="False" PageSize="15" ShowHeader="False" BorderStyle="None" BorderWidth="0px" CellPadding="0" CssClass="text" GridLines="None" OnItemDataBound="dgrdResult_ItemDataBound" OnItemCreated="dgrdResult_ItemCreated">
                                            <PagerStyle Visible="False" BorderStyle="None" BorderWidth="0px" />
                                            <Columns>
                                                <asp:TemplateColumn>
                                                    <ItemTemplate>
                                                        <asp:Panel ID="panItem" ondblclick="ImageButtonSubmit(this.id, 'ibtnOpenChild', 'panItem')" Visible="true" runat="server">
                                                            <table width="2200" height="20" class="text" cellpadding="0" cellspacing="0" border="1" bordercolor="#A1A7BB" style="border-collapse: collapse">
                                                                <tr id='trRs' runat="server">
                                                                    <td width="60" align="center" valign="top" background="../App_Images/b_23.gif">
                                                                        <table width="60" border="0" cellpadding="0" cellspacing="0">
                                                                            <tr>
                                                                                <td>
                                                                                    <asp:CheckBox ID="chkRsSelect" Visible="true" onclick="ChangTrBgColorByDataGrid(this, 'trRs','chkRsSelect')" style="cursor:hand" runat="server" />
                                                                                    <asp:ImageButton ID="ibtnRsCancel" Visible="false" OnClick="UpdateCustomerInfo" CommandName="1" CommandArgument="<%# Container.ItemIndex %>" ToolTip="取消编辑" Height="17" Width="17" ImageUrl="../App_Images/ico/4.gif" runat="server" OnClientClick="return confirm('您真的要取消编辑吗？')" />
                                                                                </td>
                                                                                <td>
                                                                                    <asp:imagebutton ID="ibtnRsEdit" Visible="false" OnClick="UpdateCustomerInfo" CommandName="0" CommandArgument="<%# Container.ItemIndex %>" ToolTip="编辑" Height="17" Width="17" ImageUrl="../App_Images/ico/12.gif" runat="server" />
                                                                                    <asp:imagebutton ID="ibtnRsOAudit" Visible="false" OnClick="AuditCustomerInfo" CommandName="1" CommandArgument="<%# Container.ItemIndex %>" ToolTip="取消确认" Height="17" Width="17" ImageUrl="../App_Images/ico/8.gif" runat="server" OnClientClick="return confirm('您真的要取消确认该条信息吗？')" />
                                                                                    <asp:ImageButton ID="ibtnRsServer" Visible="false" OnClick="UpdateCustomerInfo" CommandName="2" CommandArgument="<%# Container.ItemIndex %>" ToolTip="保存编辑" Height="17" Width="17" ImageUrl="../App_Images/ico/11.gif" runat="server" />
                                                                                </td>
                                                                            </tr>
                                                                        </table>
                                                                    </td>
                                                                    <td align="right" style="width: 90px">
                                                                        <asp:imagebutton ID="ibtnOpenChild" OnClick="OpenChildResult" CommandName="0" CommandArgument="<%# Container.ItemIndex %>" ImageUrl="../App_Images/ico/9.gif" runat="server"/>
                                                                        <asp:TextBox ID="txtRs1" Text='<%# DataBinder.Eval(Container.DataItem, "no")%>' ToolTip='<%# DataBinder.Eval(Container.DataItem, "no")%>' Width="70" Height="15" runat="server" CssClass="text" BorderColor="#7F9DB9" BorderWidth="0" ReadOnly="true" BackColor="transparent" />
                                                                    </td>
                                                                    <td align="center" style="width: 80px;"><asp:TextBox ID="txtRs2" Text='<%# DataBinder.Eval(Container.DataItem, "name")%>' ToolTip="客户简称" Width="70" Height="15" runat="server" CssClass="text" BorderColor="#7F9DB9" BorderWidth="0" ReadOnly="true" BackColor="transparent" /></td>
                                                                    <td align="center" style="width: 100px;"><asp:TextBox ID="txtRs3" Text='<%# DataBinder.Eval(Container.DataItem, "desc")%>' ToolTip="客户全称" Width="90" Height="15" runat="server" CssClass="text" BorderColor="#7F9DB9" BorderWidth="0" ReadOnly="true" BackColor="transparent" /></td>
                                                                    <td align="center" style="width: 80px;"><asp:TextBox ID="txtRs4" Text='<%# DataBinder.Eval(Container.DataItem, "tel")%>' ToolTip='<%# DataBinder.Eval(Container.DataItem, "tel")%>' Width="70" Height="15" runat="server" CssClass="text" BorderColor="#7F9DB9" BorderWidth="0" ReadOnly="true" BackColor="transparent" /></td>
                                                                    <td align="center" style="width: 80px;"><asp:TextBox ID="txtRs5" Text='<%# DataBinder.Eval(Container.DataItem, "fax")%>' ToolTip='<%# DataBinder.Eval(Container.DataItem, "fax")%>' Width="70" Height="15" runat="server" CssClass="text" BorderColor="#7F9DB9" BorderWidth="0" ReadOnly="true" BackColor="transparent" /></td>
                                                                    <td align="center" style="width: 120px;"><asp:TextBox ID="txtRs6" Text='<%# DataBinder.Eval(Container.DataItem, "addr")%>' ToolTip="地址" Width="110" Height="15" runat="server" CssClass="text" BorderColor="#7F9DB9" BorderWidth="0" ReadOnly="true" BackColor="transparent" /></td>
                                                                    <td align="center" style="width: 60px;"><asp:TextBox ID="txtRs7" Text='<%# DataBinder.Eval(Container.DataItem, "postno")%>' ToolTip="邮编" Width="50" Height="15" runat="server" CssClass="text" BorderColor="#7F9DB9" BorderWidth="0" ReadOnly="true" BackColor="transparent" onblur="CheckZip(this.id, this.value)" /></td>
                                                                    <td align="center" style="width: 70px;"><asp:TextBox ID="txtRs8" Text='<%# DataBinder.Eval(Container.DataItem, "corporation")%>' ToolTip='<%# DataBinder.Eval(Container.DataItem, "corporation")%>' Width="60" Height="15" runat="server" CssClass="text" BorderColor="#7F9DB9" BorderWidth="0" ReadOnly="true" BackColor="transparent" /></td>
                                                                    <td align="center" style="width: 70px;"><asp:TextBox ID="txtRs9" Text='<%# DataBinder.Eval(Container.DataItem, "linkman")%>' ToolTip='<%# DataBinder.Eval(Container.DataItem, "linkman")%>' Width="60" Height="15" runat="server" CssClass="text" BorderColor="#7F9DB9" BorderWidth="0" ReadOnly="true" BackColor="transparent" /></td>
                                                                    <td align="center" style="width: 100px;"><asp:TextBox ID="txtRs10" Text='<%# DataBinder.Eval(Container.DataItem, "email")%>' ToolTip='<%# DataBinder.Eval(Container.DataItem, "email")%>' Width="90" Height="15" runat="server" CssClass="text" BorderColor="#7F9DB9" BorderWidth="0" ReadOnly="true" BackColor="transparent" /></td>
                                                                    <td align="center" style="width: 80px;"><asp:TextBox ID="txtRs11" Text='<%# DataBinder.Eval(Container.DataItem, "tel1")%>' ToolTip='<%# DataBinder.Eval(Container.DataItem, "tel1")%>' Width="70" Height="15" runat="server" CssClass="text" BorderColor="#7F9DB9" BorderWidth="0" ReadOnly="true" BackColor="transparent" /></td>
                                                                    <td align="center" style="width: 80px;"><asp:TextBox ID="txtRs12" Text='<%# DataBinder.Eval(Container.DataItem, "fax1")%>' ToolTip='<%# DataBinder.Eval(Container.DataItem, "fax1")%>' Width="70" Height="15" runat="server" CssClass="text" BorderColor="#7F9DB9" BorderWidth="0" ReadOnly="true" BackColor="transparent" /></td>
                                                                    <td align="center" style="width: 70px;"><uc1:CuTextSelectBox ID="ctxtRs1" Text='<%# DataBinder.Eval(Container.DataItem, "dp_name")%>' ToolTip='<%# DataBinder.Eval(Container.DataItem, "dp_id")%>' Width="60" runat="server" ReadOnly="true" ReturnTextIDs="ctxtRs1" OpenPageUrl="../Mod_QueryFrom/frm_QueryDept.aspx" /></td>
                                                                    <td align="center" style="width: 70px;"><uc1:CuTextSelectBox ID="ctxtRs2" Text='<%# DataBinder.Eval(Container.DataItem, "wk_name")%>' ToolTip='<%# DataBinder.Eval(Container.DataItem, "wk_id")%>' Width="60" runat="server" ReadOnly="true" ReturnTextIDs="ctxtRs2" OpenPageUrl="../Mod_QueryFrom/frm_QueryWorker.aspx" /></td>
                                                                    <td align="center" style="width: 70px;">
                                                                        <asp:TextBox ID="dtxtRs1" Width="60" Height="15" runat="server" CssClass="text" BorderColor="#7F9DB9" BorderWidth="0" ReadOnly="true" BackColor="transparent" Visible="true" />
                                                                        <asp:dropdownlist ID="dropRs1" runat="server" CssClass="text" Width="65" Visible="false"> 
                                                                            <asp:ListItem Value="0" Selected="True">医院</asp:ListItem>
                                                                            <asp:ListItem Value="1">商业</asp:ListItem>
                                                                            <asp:ListItem Value="2">个人</asp:ListItem>
                                                                            <asp:ListItem Value="3">其它</asp:ListItem>
                                                                        </asp:dropdownlist>
                                                                    </td>
                                                                    <td align="center" style="width: 80px;"><uc1:CuTextSelectBox ID="ctxtRs3" Text='<%# DataBinder.Eval(Container.DataItem, "ik_name")%>' ToolTip='<%# DataBinder.Eval(Container.DataItem, "ik_id")%>' Width="70" runat="server" ReadOnly="true" ReturnTextIDs="ctxtRs3" OpenPageUrl="../Mod_QueryFrom/frm_QueryCustomerType.aspx" /></td>
                                                                    <td align="center" style="width: 80px;">
                                                                        <asp:TextBox ID="dtxtRs2" Width="70" Height="15" runat="server" CssClass="text" BorderColor="#7F9DB9" BorderWidth="0" ReadOnly="true" BackColor="transparent" Visible="true" />
                                                                        <asp:dropdownlist ID="dropRs2" runat="server" CssClass="text" Width="75" Visible="false"/>
                                                                    </td>
                                                                    <td align="center" style="width: 90px;"><asp:TextBox ID="txtRs13" Text='<%# DataBinder.Eval(Container.DataItem, "accounts")%>' ToolTip='<%# DataBinder.Eval(Container.DataItem, "accounts")%>' Width="80" Height="15" runat="server" CssClass="text" BorderColor="#7F9DB9" BorderWidth="0" ReadOnly="true" BackColor="transparent" /></td>
                                                                    <td align="center" style="width: 90px;"><asp:TextBox ID="txtRs14" Text='<%# DataBinder.Eval(Container.DataItem, "revenue")%>' ToolTip='<%# DataBinder.Eval(Container.DataItem, "revenue")%>' Width="80" Height="15" runat="server" CssClass="text" BorderColor="#7F9DB9" BorderWidth="0" ReadOnly="true" BackColor="transparent" /></td>
                                                                    <td align="center" style="width: 85px;"><asp:TextBox ID="txtRs15" Text='<%# DataBinder.Eval(Container.DataItem, "oper")%>' ToolTip='<%# DataBinder.Eval(Container.DataItem, "oper")%>' Width="75" Height="15" runat="server" CssClass="text" BorderColor="#7F9DB9" BorderWidth="0" ReadOnly="true" BackColor="transparent" /></td>
                                                                    <td align="center" style="width: 100px;"><asp:TextBox ID="txtRs16" Text='<%# DataBinder.Eval(Container.DataItem, "oper_date")%>' ToolTip='<%# DataBinder.Eval(Container.DataItem, "oper_date")%>' Width="60" Height="15" runat="server" CssClass="text" BorderColor="#7F9DB9" BorderWidth="0" ReadOnly="true" BackColor="transparent" /></td>
                                                                    <td align="center" style="width: 85px;"><asp:TextBox ID="txtRs17" Text='<%# DataBinder.Eval(Container.DataItem, "auditor")%>' ToolTip='<%# DataBinder.Eval(Container.DataItem, "auditor")%>' Width="75" Height="15" runat="server" CssClass="text" BorderColor="#7F9DB9" BorderWidth="0" ReadOnly="true" BackColor="transparent" /></td>
                                                                    <td align="center" style="width: 100px;"><asp:TextBox ID="txtRs18" Text='<%# DataBinder.Eval(Container.DataItem, "audit_date")%>' ToolTip='<%# DataBinder.Eval(Container.DataItem, "audit_date")%>' Width="60" Height="15" runat="server" CssClass="text" BorderColor="#7F9DB9" BorderWidth="0" ReadOnly="true" BackColor="transparent" /></td>
                                                                    <td align="center"><asp:TextBox ID="txtRs19" Text='<%# DataBinder.Eval(Container.DataItem, "remark")%>' ToolTip='<%# DataBinder.Eval(Container.DataItem, "remark")%>' Width="170" Height="15" runat="server" CssClass="text" BorderColor="#7F9DB9" BorderWidth="0" ReadOnly="true" BackColor="transparent" /></td>
                                                                </tr>
                                                                <!-- 从表记录显示区 Begin -->
                                                                <asp:Panel ID="panShowChildResult" Visible="false" runat="server">
                                                                    <tr>
                                                                        <td colspan="25" bgcolor="#BEC2D0">
                                                                            <table width="100%" bgcolor="#E9F0EB" cellpadding="0" cellspacing="0" border="0" class="text">
                                                                                <tr>
                                                                                    <td height="352" valign="top">
                                                                                        <uc3:CustomerAddress ID="CustomerAddress" Visible="false" runat="server" />
                                                                                        <uc4:CustomerOffice ID="CustomerOffice" Visible="false" runat="server" />
                                                                                        <uc5:CustomerLicence ID="CustomerLicence" Visible="false" runat="server" />
                                                                                        <uc6:CustomerCharter ID="CustomerCharter" Visible="false" runat="server" />
                                                                                        <uc7:CustomerPrice ID="CustomerPrice" Visible="false" runat="server" />
                                                                                    </td>
                                                                                </tr>
                                                                                <tr>
                                                                                    <td height="25">
                                                                                        <table height="25" bgcolor="#E9F0EB" align="left" cellpadding="0" cellspacing="0" border="0" class="text">
                                                                                            <tr>
                                                                                                <td width="100" align="center"><asp:imagebutton ID="ibtn1" OnClick="ChangTab" CommandName="1" CommandArgument='<%# Container.ItemIndex %>' runat="server" ImageUrl="../App_Images/b_50_1.gif"/></td>
                                                                                                <asp:Panel ID="panIsVisibleTab2" runat="server">
                                                                                                    <td width="2"></td>
                                                                                                    <td width="100" align="center"><asp:imagebutton ID="ibtn2" OnClick="ChangTab" CommandName="2" CommandArgument='<%# Container.ItemIndex %>' runat="server" ImageUrl="../App_Images/b_50_4.gif"/></td>
                                                                                                </asp:Panel>
                                                                                                <td width="2"></td>
                                                                                                <td width="100" align="center"><asp:imagebutton ID="ibtn3" OnClick="ChangTab" CommandName="3" CommandArgument='<%# Container.ItemIndex %>' runat="server" ImageUrl="../App_Images/b_50_6.gif"/></td>
                                                                                                <td width="2"></td>
                                                                                                <td width="100" align="center"><asp:imagebutton ID="ibtn4" OnClick="ChangTab" CommandName="4" CommandArgument='<%# Container.ItemIndex %>' runat="server" ImageUrl="../App_Images/b_50_8.gif"/></td>
                                                                                                <td width="2"></td>
                                                                                                <td width="100" align="center"><asp:imagebutton ID="ibtn5" OnClick="ChangTab" CommandName="5" CommandArgument='<%# Container.ItemIndex %>' runat="server" ImageUrl="../App_Images/b_50_10.gif"/></td>
                                                                                            </tr>
                                                                                        </table>
                                                                                    </td>
                                                                                </tr>
                                                                            </table>
                                                                        </td>
                                                                    </tr>
                                                                </asp:Panel>
                                                                <!-- 从表记录显示区 End -->
                                                            </table>                                                               
                                                        </asp:Panel>
                                                    </ItemTemplate>
                                                </asp:TemplateColumn>
                                                <asp:BoundColumn DataField="id" ReadOnly="True" Visible="False"></asp:BoundColumn>
                                                <asp:BoundColumn DataField="custype" ReadOnly="True" Visible="False"></asp:BoundColumn>
                                                <asp:BoundColumn DataField="bk_id" ReadOnly="True" Visible="False"></asp:BoundColumn>
                                                <asp:BoundColumn DataField="is_audit" ReadOnly="True" Visible="False"></asp:BoundColumn>
                                            </Columns>
                                            <AlternatingItemStyle BackColor="#EEEFF2" />
                                            <ItemStyle BorderWidth="0px" Height="0px" />
                                        </asp:DataGrid>
                                    </td>
                                </tr>
                                <!-- 主录显示区 End -->
                            </table>
                        </div>
                    </td>
                </tr>
            </table>
            <asp:label ID="lblJs" runat="server"/>
        </form>
    </body>
</html>

